package com.yxh.lib_base.util

import android.util.Log

/**
 * @author yuanxh
 * @date :2023/6/19 21:26
 * @description:
 */
class LogUtils {

    companion object {
        private const val TAG = "XH-UM"

        @JvmStatic
        fun d(info: String) {
            Log.d("", info)
        }

        @JvmStatic
        fun d(tag: String, info: String) {
            Log.d("${TAG}_${tag}", info)
        }

        @JvmStatic
        fun i(tag: String, info: String) {
            Log.i("${TAG}_${tag}", info)
        }

        @JvmStatic
        fun w(tag: String, info: String) {
            Log.w("${TAG}_${tag}", info)
        }

        @JvmStatic
        fun e(info: Throwable) {
            e("", info.message ?: "")
        }

        @JvmStatic
        fun e(info: String) {
            e("", info)
        }

        @JvmStatic
        fun e(tag: String, info: String) {
            Log.e("${TAG}_${tag}", info)
        }

    }
}